export default {
    namespaced: true,//开启命名空间
    state :{
        userinfo:{
            user:'',
            token:''
        }
    },
    mutations: {
        setUser(state,playload){
            state.userinfo = playload
        },
        clearUser(state){
            state.userinfo = {
                user:'',
                token:''
            }
        }
    },
}